﻿#ifndef CMDACKFRAME_H
#define CMDACKFRAME_H

#include "cmdframe.h"

namespace IGBTProtocol
{
    class IGBTPROTOCOL_EXPORT CmdAckFrame : public CmdFrame
    {
        public:
            CmdAckFrame();

        protected:
            CmdType _execCmdType;
            unsigned char _execCmdCount;
            CmdExecResType _execCmdRes;
            unsigned char _errCode;

        public:
            CmdType execCmdType() const { return _execCmdType; }
            unsigned char execCmdCount() const { return _execCmdCount; }
            CmdExecResType execCmdRes() const { return _execCmdRes; }
            unsigned char errCode() const { return _errCode; }

            bool depack(QByteArray* buff) override;
    };
}

#endif // CMDACKFRAME_H
